package runtime.demo5;

public class AA extends CC {
    public static void main(String[] args) {
        Class<AA> aaClass = AA.class;

        FilterPath[] annotationsByType = aaClass.getAnnotationsByType(FilterPath.class);
        FilterPath[] declaredAnnotationsByType = aaClass.getDeclaredAnnotationsByType(FilterPath.class);
        if(annotationsByType != null) {
            for(FilterPath filter : annotationsByType) {
                System.out.println("1:" + filter.value());
            }
        }

        System.out.println("------------------------");

        if(declaredAnnotationsByType != null) {
            for(FilterPath filter : declaredAnnotationsByType) {
                System.out.println("2:" + filter.value());
            }
        }

        System.out.println(aaClass.getAnnotation(FilterPath.class));
    }
}
